package reflection;

public class Example01 {
    public static void main(String args[]){
        Class<?> c1 = null;
        Class<?> c2 = null;
        Class<?> c3 = null;
        try{
            c1 = Class.forName("reflection.A");
        }catch(ClassNotFoundException e){
            System.out.println(e.getMessage());;
        }
        c2 = new A().getClass();
        c3 = A.class;
        System.out.println("类名称："+c1.getName());
        System.out.println("类名称："+c2.getName());
        System.out.println("类名称："+c3.getName());
    }
}

class A{
}
